//
//  TextInputVC.h
//  XV
//
//  Created by apple on 27/05/2019.
//  Copyright © 2019 XR. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol TextInputVCDelegate <NSObject>

@optional
//点击了昵称、简介修改界面的保存
- (void)TextInputVCDidSave:(NSString *)text vc:(UIViewController*)vc;

@end


//文本输入
@interface TextInputVC : UIViewController

@property (nonatomic, weak) id <TextInputVCDelegate> delegate;

//默认提示文字
@property (nonatomic, strong) NSString *defalutPlaceholder;
//已经输入的内容
@property (nonatomic, strong) NSString *defalutText;
//自定义的类型标记
@property (nonatomic, assign) NSInteger tagType;
//最大字数
@property (nonatomic, assign) NSInteger max_len;

//右边按钮文本
@property (nonatomic, strong) NSString *rightText;
//多行文本输入
@property (nonatomic, assign) BOOL isShowTextView;
//是否自动关闭,默认yes
@property (nonatomic, assign) BOOL isAutoClose;
//是否显示字数统计
@property (nonatomic, assign) BOOL isShowCountLabel;


@end


NS_ASSUME_NONNULL_END
